package com.chinasoft.class1.group1;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class YinGuangBin implements TrueWord {
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public YinGuangBin(){
        wordList.add("哈吉米");
        wordList.add("叮咚鸡");
        wordList.add("大狗叫");
    }

    @Override
    public String getWord() {
        int index = random.nextInt(wordList.size());
        return wordList.get( index);
    }

    @Override
    public String getName() {
        return "尹广彬";
    }
}
